package com.panda.pandawash.util;

import android.content.Context;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by ubuntu on 17-3-24.
 */

public class ProductsListUtils {
    private Context mContext;
    private static String[] devicesName = new String[]{"PM-610A+", "PM-611A+", "PM-620A+", "PM-390A+", "PM-393A+", "PM-360EA+", "PM-370EA+", "PM-1015A+", "PM-1215A+"};
    private static double[] devicesPower = new double[]{2.4D, 2.4D, 3.0D, 2.4D, 3.0D, 2.4D, 3.0D, 2.4D, 3.0D};
    private static double[] devicesFlow = new double[]{15.3D, 12.5D, 13.0D, 15.2D, 15.2D, 15.2D, 15.2D, 15.0D, 15.0D};
    private static List<Map<String, Object>> devicesInformation;

    public ProductsListUtils(Context mContext) {
        this.mContext = mContext;
    }

    public static final List<Map<String, Object>> getProductsList() {
        devicesInformation = new ArrayList();

        for(int i = 0; i < devicesName.length; ++i) {
            HashMap hashMap = new HashMap();
            hashMap.put("device_name", devicesName[i]);
            hashMap.put("device_power", Double.valueOf(devicesPower[i]));
            hashMap.put("device_flow", Double.valueOf(devicesFlow[i]));
            devicesInformation.add(hashMap);
        }

        return devicesInformation;
    }
}
